package com.zp.self.module.level_1_问道.III_多线程.JUC;

import java.util.concurrent.locks.AbstractQueuedSynchronizer;

/**
 * @author ：by Zeng Peng
 * @date ：Created 2022/8/9 23:06
 * @description ：
 */
public class MyAbstractQueueSynchronized extends AbstractQueuedSynchronizer {

    @Override
    protected boolean tryAcquire(int arg) {
        return super.tryAcquire(arg);
    }

    @Override
    protected boolean tryRelease(int arg) {
        return super.tryRelease(arg);
    }

    @Override
    protected int tryAcquireShared(int arg) {
        return super.tryAcquireShared(arg);
    }

    @Override
    protected boolean tryReleaseShared(int arg) {
        return super.tryReleaseShared(arg);
    }

    @Override
    protected boolean isHeldExclusively() {
        return super.isHeldExclusively();
    }
}
